package com.besttone.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.besttone.search.model.City;
import java.util.ArrayList;

public abstract class LetterListAdapter extends BaseAdapter {
	ArrayList<City> mCitylist;
	Context mContext;

	public LetterListAdapter() {
	}

	public LetterListAdapter(Context paramContext,
			ArrayList<City> paramArrayList) {
		this.mCitylist = paramArrayList;
		this.mContext = paramContext;
	}

	public int getCount() {
		return this.mCitylist.size();
	}

	public Object getItem(int paramInt) {
		return this.mCitylist.get(paramInt);
	}

	public long getItemId(int paramInt) {
		return paramInt;
	}

	public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) {
		return setTheView(paramInt, paramView, paramViewGroup);
	}

	public abstract View setTheView(int paramInt, View paramView,
			ViewGroup paramViewGroup);

}